package com.jdk.study.d2jvm.chapter05;

/**
 * @description:
 * @author: JackLi
 * @date: 2020/4/12 14:11
 */
public class Stack04_StackFrameTest {

    public static void main(String[] args) {
        Stack04_StackFrameTest stackFrameTest = new Stack04_StackFrameTest();
        stackFrameTest.method1();
    }

    public void method1() {
        System.out.println("method1()开始执行......");
        method2();
        System.out.println("method1()执行结束......");
        return; // 可以省略
    }

    public int method2() {
        System.out.println("method2()开始执行......");
        int i = 10;
        int m = (int) method3();
        System.out.println("method2()执行即将结束......");
        return i + m;
    }

    public double method3() {
        System.out.println("method3()开始执行......");
        double j = 20.0;
        System.out.println("method3()执行即将结束......");
        return j;
    }

}
